<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
namespace core;
defined('BY_JYA') or exit('error');
class domain{
	public function checkplugindomain(){
        $domain=pdo_get('core_domain',array('domain'=>$_SERVER['HTTP_HOST']),array('isdu','totype','plugin','url','is_zhu'));
		if($domain['isdu'] && $domain['plugin']){
			if($domain['totype']!=1 || $_SESSION['os']=='windows'){
				$url=manage_url('core/home.applogin//onesysname='.$domain['plugin'],true);
			}else{
				$url=custom_url($domain['plugin'].'/index/',true);
			}
			exi('','',$url);
		}
        return '';
    }
}